<template>
  <div>
    <h1>useAttrs</h1>
    <el-button type="primary" size="small" :icon="Edit" />
    <HintButton type="primary" size="small" :icon="Edit" title="编辑" @click="handler"/>
  </div>
</template>

<script setup lang="ts">
  // useAttrs: 可以获取到组件身上的属性与事件
  import { Edit } from '@element-plus/icons-vue'
  import HintButton from './HintButton.vue'

  const handler = () => {
    alert('12306')
  }
</script>

<style scoped>
</style>